#ifndef _HAL_UART_H_
#define _HAL_UART_H_

#include <stdint.h>

typedef struct
{
    uint16_t rx_in;
    uint16_t rx_out;
    uint16_t rx_len;
    uint8_t rx_buf[256];
}uart_t;

void rx_fifo_in(uart_t *p, uint8_t data);
int32_t rx_fifo_out(uart_t *p, uint8_t *buff, uint32_t buff_len);


#endif
